﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="NewsEntry.aspx.vb" Inherits="NewsEntry" MasterPageFile="~/MainLayout.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
        <h1>News Entry</h1>
        <hr />
        <asp:UpdatePanel ID="udpMessage" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">

                    <span class="title">Error</span><br />
                    <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
                </div>
                <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">

                    <span class="title">Successful</span><br />
                    <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="upgContentGeneral" runat="server" AssociatedUpdatePanelID="upPropertyEntry">
            <ProgressTemplate>
                <div style="top: 0px; position: fixed; width: 100%; text-align: center">
                    <span style="background-color: Yellow; font-weight: bold">Loading ...</span>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>


        <asp:Label ID="lblStaffUID" runat="server" Visible="false" />

        <p><%--Description of the page--%></p>
        <div class="form-container" id="divContentGeneral">
            <table width="100%">
                <tr>
                    <td class="General-info-title" style="width: 250px;">
                        <h3>General Information for News Info</h3>
                    </td>
                    <td>
                        <div class="General-info-title-line"></div>
                    </td>
                </tr>
            </table>
            <asp:UpdatePanel ID="upPropertyDetail" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                    <table class="form-table" cellpadding="5" cellspacing="5">
                        <tr>
                            <th scope="row" style="width: inherit">Title :
                            </th>
                            <td style="width: 600px">
                                <asp:TextBox ID="txtTitle" runat="server" MaxLength="200" Style="width: inherit" ToolTip="News Title" placeholder="max length : 200 characters"/>
                                <span style="color: Red">*<asp:RequiredFieldValidator ID="rfTitle" ControlToValidate="txtTitle"
                                    SetFocusOnError="true" runat="server" ValidationGroup="Entry" ErrorMessage="<br />Please enter a Title"
                                    ForeColor="Red" Display="Dynamic" />
                                    <asp:Label ID="lblExistLelongTipCodeError" runat="server" ForeColor="Red" /><asp:Button
                                        ID="btnVerify" runat="server" Text="Verify" Style="display: none" />
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row" style="width: inherit">Source :
                            </th>
                            <td style="width: 600px">
                                <asp:TextBox ID="txtSource" Style="width: inherit" runat="server" MaxLength="200" ToolTip="Source" placeholder="max length : 200 characters"/>
                                <span style="color: Red">*<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtSource" SetFocusOnError="true" runat="server" ValidationGroup="Entry" ErrorMessage="<br />Please enter source" ForeColor="Red" Display="Dynamic" /></span>
                            </td>
                        </tr>

                        <tr>
                            <th scope="row" style="width: inherit">Details :
                            </th>
                            <td style="width: 600px">
                                <asp:TextBox ID="txtDetails" Style="width: inherit; height:150px" runat="server" MaxLength="1500" TextMode="MultiLine" ToolTip="News Details" placeholder="max length : 2000 characters" />
                                <span style="color: Red">*<asp:RequiredFieldValidator ID="rfvDescription" ControlToValidate="txtDetails" SetFocusOnError="true" runat="server" ValidationGroup="Entry" ErrorMessage="<br />Please enter details" ForeColor="Red" Display="Dynamic" /></span>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row" style="width: 200px">Date :
                            </th>
                            <td style="width: 600px">
                                <asp:TextBox ID="txtDate" Style="width: inherit" runat="server" MaxLength="30" TextMode="Date" />
                                <span style="color: Red">*<asp:RequiredFieldValidator ID="rfvAuctionDate" ControlToValidate="txtDate" SetFocusOnError="true" runat="server" ValidationGroup="Entry" ErrorMessage="<br />Please enter valid date" ForeColor="Red" Display="Dynamic" /></span>
                            </td>
                        </tr>

                    </table>

                    <!-- HIDDEN FIELD -->
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Label ID="lblhidPropertyId" runat="server" Visible="false" />
            <asp:Label ID="lblhidStaffId" runat="server" Visible="false" />
            <asp:Label ID="lblhidStaffType" runat="server" Visible="false" />
        </div>


        <div class=" form-entry-container">

            <table width="100%" style="margin-left: 0px;">
                <tr>
                    <td>
                        <div class="General-info-title-line"></div>
                    </td>
                    <td style="width: 300px;">
                        <asp:UpdatePanel ID="upPropertyEntry" runat="server">
                            <ContentTemplate>
                                &nbsp;<asp:Button ID="btnBack" runat="server" Text="Cancel" CssClass="search-btn" Width="60" />
                                &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Entry" CssClass="search-btn" Width="80" OnClientClick="SetScrollEvent();"/>
                                <asp:Button ID="btnUploadPhoto" runat="server" Text="Upload Photo" CssClass="search-btn" Width="80" />
                                <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" ConfirmText="Do you want to cancel? All your unsaved data will be lost." />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                    <td style="width: 60px">
                        <div class="General-info-title-line"></div>
                    </td>
                </tr>
            </table>
            <div class=" form-entry-title" style="line-height: 15px; margin-bottom: 0px; margin-top: 15px;"><span style="color: Red; font-size: 10px;">*Required fields</span></div>
        </div>



    </asp:Content>
